Partizan Games in Isabelle/HOLZF
نویسنده
چکیده
Partizan Games (PGs) were invented by John H. Conway and are described in his book On Numbers and Games. We formalize PGs in Higher Order Logic extended with ZF axioms (HOLZF) using Isabelle, a mechanical proof assistant. We show that PGs can be defined as the unique fixpoint of a function that arises naturally from Conway’s original definition. While the construction of PGs in HOLZF relies heavily on the ZF axioms, operations on PGs are defined on a game type that hides its set theoretic origins. A polymorphic type of sets that are not bigger than ZF sets facilitates this. We formalize the induction principle that Conway uses throughout his proofs about games, and prove its correctness. For these purposes we examine how the notions of well-foundedness in HOL and ZF are related in HOLZF. Finally, games (modulo equality) are added to Isabelle’s numeric types by showing that they are an instance of the axiomatic type class of partially ordered abelian groups.
منابع مشابه
7 Misère Canonical Forms of Partizan Games
We show that partizan games admit canonical forms in misère play. The proof is a synthesis of the canonical form theorems for normal-play partizan games and misère-play impartial games. It is fully constructive, and algorithms readily emerge for comparing misère games and calculating their canonical forms. We use these techniques to show that there are precisely 256 games born by day 2, and to ...
متن کاملThe Combinatorial Game Theory of Well-Tempered Scoring Games
We consider the class of “well-tempered” integer-valued scoring games, which have the property that the parity of the length of the game is independent of the line of play. We consider disjunctive sums of these games, and develop a theory for them analogous to the standard theory of disjunctive sums of normal-play partizan games. We show that the monoid of well-tempered scoring games modulo ind...
متن کاملCategory Theory
This article presents a development of Category Theory in Isabelle. A Category is defined using records and locales in Isabelle/HOL. Functors and Natural Transformations are also defined. The main result that has been formalized is that the Yoneda functor is a full and faithful embedding. We also formalize the completeness of many sorted monadic equational logic. Extensive use is made of the HO...
متن کاملThe strange algebra of combinatorial games
We present an algebraic framework for the analysis of combinatorial games. This framework embraces the classical theory of partizan games as well as a number of misère games, comply-constrain games, and card games that have been studied more recently. It focuses on the construction of the quotient monoid of a game, an idea that has been successively applied to several classes of games.
متن کاملAnother Form of Matrix Nim
A new form of 2-dimensional nim is investigated. Positions are rectangular matrices of non-negative integers. Moves consist of chosing a positive integer and a row or column and subtracting the integer from every element of the chosen row or column. Last to move wins. The 2 × 1 case is just Wythoff’s Game. The outcomes of all 2×2 positions are found in both the impartial and partizan cases. Som...
متن کامل